package com.foxchen.offline.task.service;

import com.foxchen.offline.task.bean.ResponseBean;
import com.foxchen.offline.task.bean.TaskPojo;
import com.foxchen.offline.task.dto.TaskInfoDto;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;


public interface OfflineTaskService {
    ResponseBean<String> createTask(TaskInfoDto taskInfo);

    ResponseBean<String> deleteTask(String taskId);

    Integer updateTask(TaskPojo taskPojo);

    PageInfo<TaskPojo> listTask(TaskInfoDto taskInfo, Integer page, Integer pageSize);

    List<TaskPojo> selectUnBeginTask();

    void downloadTask(String id, HttpServletResponse response) throws Exception;
}
